package com.mybatis.sqlsession;

import com.mybatis.entity.Configuration;

/**
 * 创建人: yyn
 * 创建时间:2021/7/9 7:48
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory {
    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession(){
        return new DefaultSqlSession(configuration);
    }
}
